package com.zlc.common.common.exception;


import com.zlc.common.common.constant.BizResponseStatus;

public class WorkflowException extends RuntimeException {
    private static final long serialVersionUID = 5632129644421505963L;
    private String status;
    private Object detail;

    public WorkflowException(String message, String status, Object detail) {
        super(message);
        this.status = BizResponseStatus.BUSINESS_EXEPTION.status();
        this.status = status;
        this.detail = detail;
    }

    public WorkflowException(String message) {
        super(message);
        this.status = BizResponseStatus.BUSINESS_EXEPTION.status();
    }

    public WorkflowException(String message, Object detail) {
        super(message);
        this.status = BizResponseStatus.BUSINESS_EXEPTION.status();
        this.detail = detail;
    }

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getDetail() {
        return this.detail;
    }

    public void setDetail(Object detail) {
        this.detail = detail;
    }
}

